package com.ogawa.chair7808.bean;

import com.ogawa.base.utils.StringUtils;

public class Massage7808Armchair {

    private static Massage7808Armchair instance;
    private TempDevice7808StateBean tempDeviceStatusBean = new TempDevice7808StateBean();
    private DeviceOffBean deviceOffBean = new DeviceOffBean();
    private String fault;


    private Massage7808Armchair() {

    }

    public static Massage7808Armchair getInstance() {
        if (instance == null) {
            synchronized (Massage7808Armchair.class) {
                if (instance == null) {
                    instance = new Massage7808Armchair();
                }
            }
        }
        return instance;
    }

    public int getReset() {
        if (deviceOffBean == null) {
            return 1;
        }
        return StringUtils.getValue(deviceOffBean.getFunctions().getResetSucccessFlag().getModelValue());
    }

    public DeviceOffBean getDeviceOffBean() {
        return deviceOffBean;
    }

    public void setDeviceOffBean(DeviceOffBean deviceOffBean) {
        this.deviceOffBean = deviceOffBean;
    }

    public String getFault() {
        return fault;
    }

    public void setFault(String fault) {
        this.fault = fault;
    }

    public static void setInstance(Massage7808Armchair instance) {
        Massage7808Armchair.instance = instance;
    }

    public TempDevice7808StateBean getTempDeviceStatusBean() {
        return tempDeviceStatusBean;
    }

    public void setTempDeviceStatusBean(TempDevice7808StateBean tempDeviceStatusBean) {
        this.tempDeviceStatusBean = tempDeviceStatusBean;
    }

}
